package com.zhiyou100.service;

import com.zhiyou100.dao.UserDao;
import com.zhiyou100.pojo.User;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
@Service("userServiceImpl")
//@Service
public class UserServiceImpl implements UserService {
//    @Resource
    @Autowired
    private UserDao userDao;

    @Override
    public List<User> query() {
        return userDao.query();
    }
}
